package cn.tcmp.kmall.service;

import cn.tcmp.kmall.bean.PmsBaseAttrInfo;
import cn.tcmp.kmall.bean.PmsBaseAttrInfoExample;
import cn.tcmp.kmall.mapper.PmsBaseAttrInfoMapper;
import org.apache.dubbo.config.annotation.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class AttrServiceImpl implements AttrService{

    @Resource
    PmsBaseAttrInfoMapper pmsBaseAttrInfoMapper;

    @Override
    public List<PmsBaseAttrInfo> select(Long catalog3Id) {
        PmsBaseAttrInfoExample example=new PmsBaseAttrInfoExample();
        PmsBaseAttrInfoExample.Criteria criteria=
                example.createCriteria();
        criteria.andCatalog3IdEqualTo(catalog3Id);
        List<PmsBaseAttrInfo> infoList=pmsBaseAttrInfoMapper.selectByExample(example);
        return infoList;
    }
}
